package com.pangda.service;

import com.pangda.common.domain.PageResult;
import com.pangda.common.domain.ResponseResult;
import com.pangda.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pangda.pojo.Transfer;
import com.pangda.pojo.dto.SysUserDto;
import com.pangda.pojo.vo.SysUserVo;

import javax.script.ScriptException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author xjy
 * @since 2024-06-21
 */
public interface ISysUserService extends IService<SysUser> {

    ResponseResult addUser(SysUserDto sysUserDto);

    /**
     * 获取用户列表
     *
     * @return
     */
    PageResult<SysUserVo> searchUserList(PageResult pageResult, SysUserDto sysUserDto);

    /**
     * 获取用户详情
     *
     * @param userId
     * @return
     */
    Map<String, Object> getUser(Integer userId);

    /**
     * 修改用户
     *
     * @param sysUserDto
     * @return
     */
    ResponseResult updateUser(SysUserDto sysUserDto);

    /**
     * 登录
     *
     * @return
     */
    ResponseResult login(Map<String, Object> map) throws ScriptException;

}
